﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<iBuproModel.Department>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%:Html.Translate("edit") %> <%:Model.Name %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <h2><%:Html.Translate("createDepartment")%></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
 
            <div class="editor-label">
                <%:Html.Translate("name") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                <%:Html.Translate("shortcut") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Shortcut) %>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>
            
            <div class="editor-label">
                <%:Html.Translate("visibility") %>
            </div>
            <div class="editor-field">
                <%: Html.CheckBoxFor(model => model.Visible) %>
                <%: Html.ValidationMessageFor(model => model.Visible) %>
            </div>
            
            <p>
                <input type="submit" value="<%:Html.Translate("save") %>" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

